package com.duanjy.webtools.util;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.duanjy.webtools.model.Cmdinfo;
import com.duanjy.webtools.model.Hostinfo;
import com.duanjy.webtools.service.CommandInfoService;
import com.duanjy.webtools.service.HostInfoService;
import com.jfinal.plugin.activerecord.Page;

public class TestCase {
	public static void main(String[] args){
//		CommandInfoService cmdInfoService = new CommandInfoService();
//		
//		List<Cmdinfo> cmdinfos = new ArrayList<Cmdinfo>();
//		Page<Cmdinfo> cmdPage = cmdInfoService.getCmdService(1, 14,null);
//		cmdinfos = cmdPage.getList();
//		
//		System.out.println("list:"+cmdinfos);
		
		HostInfoService hostInfoService = new HostInfoService();
		List<Hostinfo> hostinfos = new ArrayList<Hostinfo>();
		
		Page<Hostinfo> hostPage = hostInfoService.getHostService(1, 14, null);
		hostinfos = hostPage.getList();
		System.out.println("list:"+hostinfos);
		
	}
}
